package com.rightsidetech.mall.dto.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
public class CommodityAgentSortReq implements Serializable {

    @ApiModelProperty(value = "代理商商品列表id",required = true)
    @NotEmpty(message = "代理商商品列表id不可为空")
    private List<@Min(value = 0,message = "代理商商品列表id不可为负数") @NotNull(message = "id不可为空") Long> id;

    @ApiModelProperty(value = "排序",required = true)
    @NotEmpty(message = "排序不可为空")
    private List<@Min(value = 0,message = "排序不可为负数") @NotNull(message = "排序不可为空")Long> sort;
}
